package com.coolingme.general;

/**
 * 桥接模式测试
 *
 * @author wangyue
 * @date 2020-09-20 17:16
 */
public class Test {

    public static void main(String[] args) {
        Implementor implementA = new ConcreteImplementA();
        Abstraction abstraction = new RefindAbstraction(implementA);
        abstraction.operation();

        System.out.println("----------------");

        Implementor implementB = new ConcreteImplementB();
        abstraction = new RefindAbstraction(implementB);
        abstraction.operation();
    }

}
